package com.whsxt.realm;

import com.whsxt.domain.User;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

@Data
public class ActiveUser implements Serializable {

    private User user;

    private Set<String> roles;

    private Set<String> perms;

    public String getRealname(){
        return user.getRealname();
    }

    public String getImg(){
        return user.getImg();
    }
}
